﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GEA
{
    public partial class frmrptMovimentoProcesso : Form
    {
        //DU Du = new DU();
        string id_E;
        string id_P;
        string id_du_E;
        string id_du_S;

        public frmrptMovimentoProcesso()
        {
            InitializeComponent();
        }

        public frmrptMovimentoProcesso(string id_e,string id_p,string id_du_e,string id_du_s)
        {
            InitializeComponent();
            id_E = id_e;
            id_P = id_p;
            id_du_E = id_du_e;
            id_du_S = id_du_s;

            this.Padding = new System.Windows.Forms.Padding(5, 20, 5, 50);
        }

        private void frmrptMovimentoProcesso_Load(object sender, EventArgs e)
        {
            this.GetProcessoTableAdapter.Fill(this.geaDataSet.GetProcesso,id_E,id_P,id_du_E,id_du_S);
            if (id_du_S != "")
                reportViewer1.LocalReport.DisplayName = "DU_" + id_du_S;
            else
                reportViewer1.LocalReport.DisplayName = "DU_" + id_du_E;
            this.reportViewer1.RefreshReport();
            
        }
    }
}
